﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>审批页面</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/style.css" />
    <link href="~/css/img.css" rel="stylesheet" />


</head>
<body class="bb1">
    <div align=center class="d1">
        <marquee style="FONT-SIZE: 35pt; WIDTH: 400px; FILTER: shadow(color=#AF0530); LINE-HEIGHT:15pt; FONT-FAMILY: 隶书; HEIGHT: 80px" scrollamount=6>
            <h2 style="margin-top:0px;text-align:center"><font color=#f90b46>审批页面 </font></h2>
        </marquee>
    </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <tr>
            <td>报修编号：</td>
            <td>
                <input type="text" name="txtRepName" value="@Model.RepairsId" id="txtId" />
            </td>
        </tr>
        <tr>
            <td>报修名称：</td>
            <td>
                <input type="text" name="txtRepName" value="@Model.RepairsName" />
            </td>
        </tr>
        <tr>
            <td>问题描述：</td>
            <td><input type="text" id="TextArea1" rows="2" cols="20" name="txtDesc" value="@Model.RepairsDesc"></td>
        </tr>
        <tr>
            <td>发现人：</td>
            <td>
                <input type="text" name="txtFname" value="@Model.FindPeople" />
            </td>

            </tr>
            <tr>
                <td>发现时间：</td>
                <td>
                    <input type="text" name="txtDate" value="@Model.FindDate" />
                </td>
            </tr>
            <tr>
                <td>问题等级：</td>
                <td>
                    <input type="text" value="@Model.Grade" />
                </td>
            </tr>
            <tr>
                <td>上传问题配件图片：</td>
                <td>
                    <img src="@Model.RapairsPicture" />
                </td>
            </tr>
            <tr>
                <td>审批意见：</td>
                <td>
                    <input type="text" name="choice" id="choice" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="button" value="审核通过" onclick="FunUpd()" class="btn btn-success"/>
                    <input type="button" value="不通过" onclick="FunUpd1()" class="btn btn-warning" />
                </td>
            </tr>
        </table>
    <footer class="footer mt-20">
        <div class="container">
            <p>
                关于我们  |  联系我们    |  项目合作  |  广告植入   |  友情链接<br />
                版权所有 京ICP备11009069<br />
                Copyright ©2016 Gaotie.cn
            </p>
        </div>
    </footer>
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script>
        function FunUpd()
        {
            $.ajax({
                type: "post",
                url: "/Audit/Upd",
                data: { RepairsId: $("#txtId").val(), choice: $("#choice").val() },
                success: function (obj) {
                    if (obj == 1) {
                        alert('审核成功');
                        location.href = '/Audit/MyAudit';
                    }
                    else if (obj == 0) {
                        alert('审核失败');
                        location.href = '/Audit/MyAudit';
                    }
                   
                }
            })
        }
        function FunUpd1()
        {
            $.ajax({
                type: "post",
                url: "/Audit/Upd1",
                data: { RepairsId: $("#txtId").val() },
                success: function (obj) {
                
                        alert('审核驳回');
                        location.href = '/Audit/MyAudit';
                 
                }
            })
        }
    </script>
</body>

</html>
